const express = require('express');
const NewsController = require('../../controller/web/NewsController');
var NewsRouter = express.Router();

//获取内容列表
NewsRouter.get('/webapi/news/list', NewsController.getList); // 获取已发布的文章数据
NewsRouter.get('/webapi/news/list/:id', NewsController.getList); // 获取文章的详情
NewsRouter.get('/webapi/news/toplist', NewsController.getTopList); // 获取最新的前几条文章

module.exports = NewsRouter;
